import request from '@/utils/request'
import { SubjectTree } from './type'
const baseUrl = '/subject'

// 获取课程列表
export const reqSubjectTree = () =>
  request.get<any, ResponseData<SubjectTree[]>>(`${baseUrl}/tree`)
